import requests



url = "https://api.binance.com/api/v3/trades"
symbol = "BTCUSDT"
limit = 10
response = requests.get(url, params={"symbol": symbol, "limit": limit})
datas= response.json()
for data in datas:
    print(data)